<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <!-- <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> -->
  <!-- <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  -->
  <meta name="viewport" content="width=device-width, initial-scale=1"/>

  <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/css/materialize.min.css"/> -->
  <link rel="stylesheet" href="/css/materialize.min.css"/>

  <link rel="stylesheet" href="/css/comm100-new.css"/>

  <title>用户登录</title>
</head>
<body>
<nav class="top-nav z-depth-2">
  <div class="nav-wrapper white">
    <div class="brand-logo">
      <a href="/" class="logo-link"><img class="logo-img" src="/img/Comm100_logo.png"/></a>
      <span class="brand-title">高效在线客服系统</span>
    </div>
  </div>
</nav>

<div class="container main-container">
  <div th:if="${param.error}">
    用户名或密码错误
  </div>
  <div th:if="${param.logout}">
    你已经注销
  </div>
  <form class="login-form" th:action="@{/login}" method="post">
    <div><label> 用户名 : <input type="text" name="username"/> </label></div>
    <div><label> 密码: <input type="password" name="password"/> </label></div>
    <div><input type="submit" value="登录"/></div>
  </form>
</div>
<div class="register-tip">
  <span>没有账号？<a href="/register" th:href="@{/register}">注册</a></span>
</div>
<script src="/js/jquery-1.7.2.min.js"></script>
<script src="js/materialize.min.js"></script>
</body>
</html>